Optimal. Leaf size=115 \[ -\frac {b \cosh (e+f x) \sinh (e+f x)}{a (a-b) f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {i E\left (i e+i f x\left |\frac {b}{a}\right .\right ) \sqrt {a+b \sinh ^2(e+f x)}}{a (a-b) f \sqrt {1+\frac {b \sinh ^2(e+f x)}{a}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3263, 21, 3257,
3256} \begin {gather*} -\frac {b \sinh (e+f x) \cosh (e+f x)}{a f (a-b) \sqrt {a+b \sinh ^2(e+f x)}}-\frac {i \sqrt {a+b \sinh ^2(e+f x)} E\left (i e+i f x\left |\frac {b}{a}\right .\right )}{a f (a-b) \sqrt {\frac {b \sinh ^2(e+f x)}{a}+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 3256
Rule 3257
Rule 3263
Rubi steps
\begin {align*} \int \frac {1}{\left (a+b \sinh ^2(e+f x)\right )^{3/2}} \, dx &=-\frac {b \cosh (e+f x) \sinh (e+f x)}{a (a-b) f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {\int \frac {-a-b \sinh ^2(e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}} \, dx}{a (a-b)}\\ &=-\frac {b \cosh (e+f x) \sinh (e+f x)}{a (a-b) f \sqrt {a+b \sinh ^2(e+f x)}}+\frac {\int \sqrt {a+b \sinh ^2(e+f x)} \, dx}{a (a-b)}\\ &=-\frac {b \cosh (e+f x) \sinh (e+f x)}{a (a-b) f \sqrt {a+b \sinh ^2(e+f x)}}+\frac {\sqrt {a+b \sinh ^2(e+f x)} \int \sqrt {1+\frac {b \sinh ^2(e+f x)}{a}} \, dx}{a (a-b) \sqrt {1+\frac {b \sinh ^2(e+f x)}{a}}}\\ &=-\frac {b \cosh (e+f x) \sinh (e+f x)}{a (a-b) f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {i E\left (i e+i f x\left |\frac {b}{a}\right .\right ) \sqrt {a+b \sinh ^2(e+f x)}}{a (a-b) f \sqrt {1+\frac {b \sinh ^2(e+f x)}{a}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 100, normalized size = 0.87 \begin {gather*} \frac {-2 i a \sqrt {\frac {2 a-b+b \cosh (2 (e+f x))}{a}} E\left (i (e+f x)\left |\frac {b}{a}\right .\right )-\sqrt {2} b \sinh (2 (e+f x))}{2 a (a-b) f \sqrt {2 a-b+b \cosh (2 (e+f x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.15, size = 253, normalized size = 2.20
method | result | size |
default | \(-\frac {\sqrt {-\frac {b}{a}}\, b \left (\cosh ^{2}\left (f x +e \right )\right ) \sinh \left (f x +e \right )-a \sqrt {\frac {b \left (\cosh ^{2}\left (f x +e \right )\right )}{a}+\frac {a -b}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right )+b \sqrt {\frac {b \left (\cosh ^{2}\left (f x +e \right )\right )}{a}+\frac {a -b}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right )-b \sqrt {\frac {b \left (\cosh ^{2}\left (f x +e \right )\right )}{a}+\frac {a -b}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticE \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right )}{a \left (a -b \right ) \sqrt {-\frac {b}{a}}\, \cosh \left (f x +e \right ) \sqrt {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}\, f}\) | \(253\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1464 vs.
\(2 (123) = 246\).
time = 0.11, size = 1464, normalized size = 12.73 \begin {gather*} \frac {{\left ({\left (2 \, a b^{2} - b^{3}\right )} \cosh \left (f x + e\right )^{4} + 4 \, {\left (2 \, a b^{2} - b^{3}\right )} \cosh \left (f x + e\right ) \sinh \left (f x + e\right )^{3} + {\left (2 \, a b^{2} - b^{3}\right )} \sinh \left (f x + e\right )^{4} + 2 \, a b^{2} - b^{3} + 2 \, {\left (4 \, a^{2} b - 4 \, a b^{2} + b^{3}\right )} \cosh \left (f x + e\right )^{2} + 2 \, {\left (4 \, a^{2} b - 4 \, a b^{2} + b^{3} + 3 \, {\left (2 \, a b^{2} - b^{3}\right )} \cosh \left (f x + e\right )^{2}\right )} \sinh \left (f x + e\right )^{2} + 4 \, {\left ({\left (2 \, a b^{2} - b^{3}\right )} \cosh \left (f x + e\right )^{3} + {\left (4 \, a^{2} b - 4 \, a b^{2} + b^{3}\right )} \cosh \left (f x + e\right )\right )} \sinh \left (f x + e\right ) - 2 \, {\left (b^{3} \cosh \left (f x + e\right )^{4} + 4 \, b^{3} \cosh \left (f x + e\right ) \sinh \left (f x + e\right )^{3} + b^{3} \sinh \left (f x + e\right )^{4} + b^{3} + 2 \, {\left (2 \, a b^{2} - b^{3}\right )} \cosh \left (f x + e\right )^{2} + 2 \, {\left (3 \, b^{3} \cosh \left (f x + e\right )^{2} + 2 \, a b^{2} - b^{3}\right )} \sinh \left (f x + e\right )^{2} + 4 \, {\left (b^{3} \cosh \left (f x + e\right )^{3} + {\left (2 \, a b^{2} - b^{3}\right )} \cosh \left (f x + e\right )\right )} \sinh \left (f x + e\right )\right )} \sqrt {\frac {a^{2} - a b}{b^{2}}}\right )} \sqrt {b} \sqrt {\frac {2 \, b \sqrt {\frac {a^{2} - a b}{b^{2}}} - 2 \, a + b}{b}} E(\arcsin \left (\sqrt {\frac {2 \, b \sqrt {\frac {a^{2} - a b}{b^{2}}} - 2 \, a + b}{b}} {\left (\cosh \left (f x + e\right ) + \sinh \left (f x + e\right )\right )}\right )\,|\,\frac {8 \, a^{2} - 8 \, a b + b^{2} + 4 \, {\left (2 \, a b - b^{2}\right )} \sqrt {\frac {a^{2} - a b}{b^{2}}}}{b^{2}}) - 2 \, {\left ({\left (2 \, a^{2} b - a b^{2}\right )} \cosh \left (f x + e\right )^{4} + 4 \, {\left (2 \, a^{2} b - a b^{2}\right )} \cosh \left (f x + e\right ) \sinh \left (f x + e\right )^{3} + {\left (2 \, a^{2} b - a b^{2}\right )} \sinh \left (f x + e\right )^{4} + 2 \, a^{2} b - a b^{2} + 2 \, {\left (4 \, a^{3} - 4 \, a^{2} b + a b^{2}\right )} \cosh \left (f x + e\right )^{2} + 2 \, {\left (4 \, a^{3} - 4 \, a^{2} b + a b^{2} + 3 \, {\left (2 \, a^{2} b - a b^{2}\right )} \cosh \left (f x + e\right )^{2}\right )} \sinh \left (f x + e\right )^{2} + 4 \, {\left ({\left (2 \, a^{2} b - a b^{2}\right )} \cosh \left (f x + e\right )^{3} + {\left (4 \, a^{3} - 4 \, a^{2} b + a b^{2}\right )} \cosh \left (f x + e\right )\right )} \sinh \left (f x + e\right ) + 2 \, {\left ({\left (a b^{2} - b^{3}\right )} \cosh \left (f x + e\right )^{4} + 4 \, {\left (a b^{2} - b^{3}\right )} \cosh \left (f x + e\right ) \sinh \left (f x + e\right )^{3} + {\left (a b^{2} - b^{3}\right )} \sinh \left (f x + e\right )^{4} + a b^{2} - b^{3} + 2 \, {\left (2 \, a^{2} b - 3 \, a b^{2} + b^{3}\right )} \cosh \left (f x + e\right )^{2} + 2 \, {\left (2 \, a^{2} b - 3 \, a b^{2} + b^{3} + 3 \, {\left (a b^{2} - b^{3}\right )} \cosh \left (f x + e\right )^{2}\right )} \sinh \left (f x + e\right )^{2} + 4 \, {\left ({\left (a b^{2} - b^{3}\right )} \cosh \left (f x + e\right )^{3} + {\left (2 \, a^{2} b - 3 \, a b^{2} + b^{3}\right )} \cosh \left (f x + e\right )\right )} \sinh \left (f x + e\right )\right )} \sqrt {\frac {a^{2} - a b}{b^{2}}}\right )} \sqrt {b} \sqrt {\frac {2 \, b \sqrt {\frac {a^{2} - a b}{b^{2}}} - 2 \, a + b}{b}} F(\arcsin \left (\sqrt {\frac {2 \, b \sqrt {\frac {a^{2} - a b}{b^{2}}} - 2 \, a + b}{b}} {\left (\cosh \left (f x + e\right ) + \sinh \left (f x + e\right )\right )}\right )\,|\,\frac {8 \, a^{2} - 8 \, a b + b^{2} + 4 \, {\left (2 \, a b - b^{2}\right )} \sqrt {\frac {a^{2} - a b}{b^{2}}}}{b^{2}}) - \sqrt {2} {\left (b^{3} \cosh \left (f x + e\right )^{3} + 3 \, b^{3} \cosh \left (f x + e\right ) \sinh \left (f x + e\right )^{2} + b^{3} \sinh \left (f x + e\right )^{3} + {\left (2 \, a b^{2} - b^{3}\right )} \cosh \left (f x + e\right ) + {\left (3 \, b^{3} \cosh \left (f x + e\right )^{2} + 2 \, a b^{2} - b^{3}\right )} \sinh \left (f x + e\right )\right )} \sqrt {\frac {b \cosh \left (f x + e\right )^{2} + b \sinh \left (f x + e\right )^{2} + 2 \, a - b}{\cosh \left (f x + e\right )^{2} - 2 \, \cosh \left (f x + e\right ) \sinh \left (f x + e\right ) + \sinh \left (f x + e\right )^{2}}}}{{\left (a^{2} b^{3} - a b^{4}\right )} f \cosh \left (f x + e\right )^{4} + 4 \, {\left (a^{2} b^{3} - a b^{4}\right )} f \cosh \left (f x + e\right ) \sinh \left (f x + e\right )^{3} + {\left (a^{2} b^{3} - a b^{4}\right )} f \sinh \left (f x + e\right )^{4} + 2 \, {\left (2 \, a^{3} b^{2} - 3 \, a^{2} b^{3} + a b^{4}\right )} f \cosh \left (f x + e\right )^{2} + 2 \, {\left (3 \, {\left (a^{2} b^{3} - a b^{4}\right )} f \cosh \left (f x + e\right )^{2} + {\left (2 \, a^{3} b^{2} - 3 \, a^{2} b^{3} + a b^{4}\right )} f\right )} \sinh \left (f x + e\right )^{2} + {\left (a^{2} b^{3} - a b^{4}\right )} f + 4 \, {\left ({\left (a^{2} b^{3} - a b^{4}\right )} f \cosh \left (f x + e\right )^{3} + {\left (2 \, a^{3} b^{2} - 3 \, a^{2} b^{3} + a b^{4}\right )} f \cosh \left (f x + e\right )\right )} \sinh \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (a + b \sinh ^{2}{\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________